package com.sikaryofficial.workbench.domain.dto.req.membership;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author : wuweihong
 * @desc : 用户会员关系Req
 * @date : 2024-10-24
 */

@Getter
@Setter
@ToString
@ApiModel(value = "用户会员关系Req入参对象", description = "用户会员关系Req入参对象")
public class MembershipRelationReq implements Serializable {

	@ApiModelProperty(value = "用户会员关系id")
	private Long membershipRelationId;

	@ApiModelProperty(value = "用户id")
	private Long userId;

	@ApiModelProperty(value = "用户名")
	private String userName;

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		MembershipRelationReq that = (MembershipRelationReq) o;
		return Objects.equals(userId, that.userId);
	}

	@Override
	public int hashCode() {
		return Objects.hash(userId);
	}
}
